package com.peycash.util;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

import com.peycash.fachada.ClienteOpFachada;

public class SpringUtils implements ApplicationContextAware{
	
	private static ApplicationContext CONTEXT;
		

	@Override
	public void setApplicationContext(ApplicationContext context)
			throws BeansException {
		 CONTEXT = context;
	}
	
	public static ClienteOpFachada getClienteFachada(){
		return (ClienteOpFachada) CONTEXT.getBean("clienteOpFachadaImpl");
	}

}
